<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>瀑布布局</title>
    <link rel="shortcut icon" href="../lib/image/favicon.ico" type="image/x-icon">
    <link rel="stylesheet" href="../lib/css/all.css">

</head>
<style>
    .box {
        width: 500px;
        height: 300px;
        column-count: 3;
        column-gap: 15px;
    }

    .item1 {
        height: 80px;
        background-color: #00FFFF;
        margin-top: 10px;
        display: block;
    }

    .item2 {
        height: 30px;
        background-color: #FF0000;
        margin-top: 10px;
        display: block;
    }

    .item3 {
        height: 60px;
        background-color: #FFFF00;
        margin-top: 10px;
        display: block;
    }

    .item4 {
        height: 40px;
        background-color: #999999;
        margin-top: 10px;
        display: block;
    }
</style>

<body>
    <div id="app">
        <div class="box">
            <div class="item1"></div>
            <div class="item2"></div>
            <div class="item3"></div>
            <div class="item4"></div>
            <div class="item1"></div>
            <div class="item2"></div>
            <div class="item3"></div>
            <div class="item4"></div>
        </div>
    </div>
</body>

</html>